package com.glodon.paas.web.tag;

/**
 * 定义EL自定义函数
 * 
 * @author Administrator
 */
public class PaasFunction {

    public static long bitAnd(long m, long n) {
        return m & n;
    }

    public static int index(long[] array, long n) {
        int size = array.length;
        for (int index = 0; index < size; index++) {
            if (array[index] == n) {
                return index;
            }
        }
        return -1;
    }
}
